package com.tools.scanner.ui.history.fragment

import com.tools.scanner.BaseFragment
import com.tools.scanner.ui.history.HistoryActivity

abstract class BaseHistoryFragment : BaseFragment() {
    abstract fun search(content: String)

    fun getCurrentActivity(): HistoryActivity? {
        val currentActivity = activity
        if (currentActivity is HistoryActivity && !currentActivity.isFinishing && !currentActivity.isDestroyed) {
            return currentActivity
        }
        return null
    }
}